package com.enation.app.javashop.api.client;

import com.enation.app.javashop.service.distribution.WithdrawCountManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 分销结算 controller
 *
 * @author liushuai(liushuai711@gmail.com)
 * @version v1.0
 * @Description:
 * @since v7.0
 * 2018/8/14 下午1:02
 */
@RestController
@RequestMapping("/client/distribution")
@Validated
@ApiIgnore
public class WithdrawCountClientController {

    @Autowired
    private WithdrawCountManager withdrawCountManager;

    /**
     * 每日进行结算
     */
    @RequestMapping(value = "/withdraw", method = RequestMethod.POST)
    public void everyDay() {
        withdrawCountManager.withdrawCount();
    }
}
